﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace StackExchange.Redis.Extensions.CacheManager
{
    public class ItemCache<T>
    {
        public string Key { get; set; }

        public T Value { get; set; }

        public DateTime ExpireDate { get; set; }
    }

    public static class ItemCacheExtension
    {
        internal static string Serialize<T>(this ItemCache<T> item)
        {
            return JsonConvert.SerializeObject(item);
        }
    }

}
